package com.gk.panda.apis.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("生物名录添加实体")
public class BiodiversitySaveDto {

    @ApiModelProperty(value = "拉丁文学名")
    private String latinName;

    @ApiModelProperty(value = "所属界名（0-动物，1-植物）")
    private int kingdom;

    @ApiModelProperty(value = "门")
    private String phylum;

    @ApiModelProperty(value = "纲")
    private String klasse;

    @ApiModelProperty(value = "目")
    private String ordo;

    @ApiModelProperty(value = "科")
    private String family;

    @ApiModelProperty(value = "属")
    private String genus;

    @ApiModelProperty(value = "种")
    private String species;

    @ApiModelProperty(value = "图片地址")
    private String pictureUrl;

    @ApiModelProperty(value = "分布地区")
    private String distribution;

    @ApiModelProperty(value = "最新发现时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date findTime;

    @ApiModelProperty(value = "数量估计")
    private Integer number;

    @ApiModelProperty(value = "数据来源")
    private Integer dataSource;

    @ApiModelProperty(value = "保护等级")
    private String protectionLevel;

    @ApiModelProperty(value = "IUCN濒危等级")
    private String iucnLevel;

    @ApiModelProperty(value = "CITES附录")
    private String citesAppendix;

    @ApiModelProperty(value = "介绍")
    private String introduce;

    @ApiModelProperty(value = "备注")
    private String remark;

}
